import { defineStore } from 'pinia';
import { StoreName } from "./store-name";

export const useTabStore = defineStore(StoreName.TAB, {
  state: () => {
    return {
      tabList: [] as any[],
    };
  },
  getters: {
    getTabList: (state) => state.tabList,
  },
  actions: {
    clean() {
      this.tabList = [];
    }
  },
  persist: true
});